package com.cskaoyan.market.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author: 鲸落
 * @Date: 2024/05/20/15:09
 * @Version: 1.0
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    
    @NotNull(message = "用户名不能为空")
    private String username;

    //密码要求8-12位
    @NotNull(message = "密码不能为空")
    private String password;
}
